<!DOCTYPE html>
<html>
    <head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>用户管理- 用户批量导入</title>
	<meta name="keywords" content="">
	<meta name="description" content="">
	<link rel="shortcut icon" href="../favicon.ico">
	<link href="__PUBLIC__/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
	<link href="__PUBLIC__/css/font-awesome.css?v=4.4.0" rel="stylesheet">
	<link href="__PUBLIC__/css/plugins/iCheck/custom.css" rel="stylesheet">
	<link href="__PUBLIC__/css/animate.css" rel="stylesheet">
	<link href="__PUBLIC__/css/style.css?v=4.1.0" rel="stylesheet">
	<link href="__PUBLIC__/Widget/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />
	<style>
	    .control-label.control-label-l{ text-align: left; }
	</style>
    </head>
    <body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
	    <div class="row">
		<div class="col-sm-12">
		    <div class="ibox float-e-margins">
			<div class="ibox-title">
			    <h5>用户管理-
				<small>用户批量导入</small>
			    </h5>
			</div>
			<div class="ibox-content">
			    <form action="<{:U('userbatchimportsubmit','','shtml')}>" class="form-horizontal" method="post" enctype="multipart/form-data" autocomplete="off">
				<div class="form-group">
				    <label class="col-sm-2 control-label">上传说明</label>
				    <div class="col-sm-8">
					<div style="padding: 15px 0; border:1px solid #cfdadd;">
					    <div class="form-group">
						<label class="col-sm-2 control-label">文件格式</label>
						<div class="col-sm-8 control-label control-label-l">
						    .xls
						</div>
					    </div>
					    <div class="form-group">
						<label class="col-sm-2 control-label">文件大小</label>
						<div class="col-sm-8 control-label control-label-l">
						    不能超过20M
						</div>
					    </div>
					    <div class="form-group">
						<label class="col-sm-2 control-label">文件模板</label>
						<div class="col-sm-8 control-label control-label-l">
						    <a href="<{$url}>/Public/userdemo.xls"  target="_blank" title="点击下载">点击下载</a>
						    <span style="color:red">（请严格遵照模板文件中的格式导入数据；否则，会导致导入不成功或导入的数据出现错乱。）</span>
						</div>
					    </div>
					</div>
				    </div>
				</div>
				<if condition="$app_code eq ''">
				<div class="form-group">
				    <label class="col-sm-2 control-label">*项目</label>
				    <div class="col-sm-8">
					<select class="form-control" name="ddlapp" id="ddlapp">
					    <option value="" selected="selected">-请选择项目-</option>
					    <volist name="apparr" id="apparr">
						<option value="<{$apparr.app_flag}>"><{$apparr.app_name}></option>
					    </volist>
					</select>
				    </div>
				</div>
				</if>
				<div class="form-group">
				    <label class="col-sm-2 control-label">*上传文件</label>
				    <div class="col-sm-8">
					<div class="fileupload fileupload-new" data-provides="fileupload">
					    <div class="input-group">
						<div class="input-group-btn">
						    <span class="btn btn-default btn-file"><span class="fileupload-new">选择文件</span><input id="file" name="file" type="file" /></span>
						</div>
						<!--						<div class="form-control">
												    <i class="icon-file fileupload-exists"></i><span class="fileupload-preview"></span>
												</div>-->
					    </div>
					</div>
				    </div>
				</div>
				<div class="form-group">
				    <label class="col-sm-2 control-label">认证状态（默认）</label>
				    <div class="col-sm-8">
					<select class="form-control" name="ddlidstate" id="ddlidstate" onchange="id_state_toggle(this)">
					    <volist name="idstatearr" id="idstatearr">
						<option value ="<{$idstatearr.value}>" <if condition="3 eq $idstatearr['value']">selected</if>><{$idstatearr.text}></option>
					    </volist>
					</select>
				    </div>
				</div>
				<div class="form-group">
				    <label class="col-sm-2 control-label">上下架（默认）</label>
				    <div class="col-sm-8">
					<select class="form-control" name="ddlflag" id="ddlflag">
					    <volist name="flagarr" id="flagarr">
						<option value ="<{$flagarr.value}>" <if condition="2 eq $flagarr['value']">selected</if>><{$flagarr.text}></option>
					    </volist>
					</select>
				    </div>
				</div>
				<div class="form-group">
				    <label class="col-sm-2 control-label">相册认证状态（默认）</label>
				    <div class="col-sm-8">
					<select class="form-control" name="ddlphotoidstate" id="ddlphotoidstate">
					    <volist name="photoidstatearr" id="photoidstatearr">
						<option value ="<{$photoidstatearr.value}>" <if condition="3 eq $photoidstatearr['value']">selected</if>><{$photoidstatearr.text}></option>
					    </volist>
					</select>
				    </div>
				</div>
                                
                                <div class="form-group">
				    <label class="col-sm-2 control-label">是否机器人（默认）</label>
				    <div class="col-sm-8">
					<select class="form-control" name="is_robot" id="is_robot">
                                            <option value ="0"  selected = "selected" >真实用户</option>
                                             <option value ="1" >机器人</option>
					</select>
				    </div>
				</div>
                                
				<div class="hr-line-dashed"></div>
				<div class="form-group">
				    <div class="col-sm-8 col-sm-offset-2">
					<button class="btn btn-primary" type="submit">导入</button>
				    </div>
				</div>
			    </form>
			</div>
		    </div>
		</div>
	    </div>
	</div>
	<!-- 全局js -->
	<script src="__PUBLIC__/js/jquery.min.js?v=2.1.4"></script>
	<script src="__PUBLIC__/js/bootstrap.min.js?v=3.3.6"></script>
	<!-- 自定义js -->
	<script src="__PUBLIC__/js/content.js?v=1.0.0"></script>
	<script src="__PUBLIC__/js/plugins/layer/layer.min.js"></script>
	<script src="__PUBLIC__/js/ajaxfileupload.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Widget/webuploader/0.1.5/webuploader.min.js"></script>
	<!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
	<!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
	<script>
					    function batch_import_submit(obj) {
						var $obj = $(obj);
						$obj.html('导入中…').removeClass('btn-primary').unbind('click').removeAttr('onclick');
					    }
					    function id_state_toggle(obj) {
						var $obj = $(obj);
						var val = $obj.val();
						if (val == "3") {
						    $obj.parents(".form-group").next().show();
						}else{
						    $obj.parents(".form-group").next().hide();
						}
					    }
	</script>
    </body>
</html>
